package cn.edu.scau.cmi.chenmiaopeng;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;

public class SingletonClient extends Application{
	public static void main(String[] args) {
		launch(args);
	}
	public void start(Stage primaryStage) throws Exception{
		try {
		  Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/chenmiaopeng/singleton/Singleton.fxml"));
		  
		  Scene scene = new Scene(root, 350, 300);
		  
		  primaryStage.setScene(scene);
		  
		  primaryStage.setTitle("单例模式");
		  
		  primaryStage.show();
		}
		catch(IOException e) {
			e.printStackTrace();
		}
	}
}
